package cn.anosi.repository.test;

import java.util.List;

import javax.persistence.QueryHint;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.QueryHints;

import cn.anosi.entity.test.Person;

public interface PersonRepository extends JpaRepository<Person, Integer>{
	@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value ="true") })
	List<Person> findAll();
	
	Person findById(Integer id);
}
